<?php
return array (
  'guest' => 
  array (
    'type' => 2,
    'description' => 'Guest',
    'bizRule' => NULL,
    'data' => NULL,
  ),
  'administrator' => 
  array (
    'type' => 2,
    'description' => 'Administrator',
    'bizRule' => NULL,
    'data' => NULL,
    'children' => 
    array (
      0 => 'guest',
      1 => 'user',
      2 => 'company',
      3 => 'company.editor',
      4 => 'company.edit',
      5 => 'citymanager',
    ),
  ),
  'user' => 
  array (
    'type' => 2,
    'description' => 'User',
    'bizRule' => NULL,
    'data' => NULL,
    'children' => 
    array (
      0 => 'guest',
      1 => 'user.coupon.access',
    ),
  ),
  'unverified' => 
  array (
    'type' => 2,
    'description' => 'Unverified',
    'bizRule' => NULL,
    'data' => NULL,
    'children' => 
    array (
      0 => 'guest',
    ),
  ),
  'banned' => 
  array (
    'type' => 2,
    'description' => 'Banned',
    'bizRule' => NULL,
    'data' => NULL,
    'children' => 
    array (
      0 => 'guest',
    ),
  ),
  'unapproved' => 
  array (
    'type' => 2,
    'description' => 'Unapproved',
    'bizRule' => NULL,
    'data' => NULL,
    'children' => 
    array (
      0 => 'guest',
    ),
  ),
  'company' => 
  array (
    'type' => 2,
    'description' => 'Company Account (Viewer)',
    'bizRule' => NULL,
    'data' => NULL,
    'children' => 
    array (
      0 => 'user',
      1 => 'company.coupon.access',
    ),
  ),
  'company.editor' => 
  array (
    'type' => 2,
    'description' => 'Company Account (Editor)',
    'bizRule' => NULL,
    'data' => NULL,
    'children' => 
    array (
      0 => 'user',
      1 => 'company',
      2 => 'company.owner',
      3 => 'company.coupon.access',
    ),
  ),
  'company.owner' => 
  array (
    'type' => 1,
    'description' => 'company owner',
    'bizRule' => 'return $params->userId == app()->user->id;',
    'data' => NULL,
    'children' => 
    array (
      0 => 'company.edit',
    ),
  ),
  'company.edit' => 
  array (
    'type' => 0,
    'description' => 'edit deal or company info',
    'bizRule' => NULL,
    'data' => NULL,
  ),
  'coupon.access' => 
  array (
    'type' => 0,
    'description' => 'coupon print/mark as used access',
    'bizRule' => NULL,
    'data' => NULL,
  ),
  'user.coupon.access' => 
  array (
    'type' => 1,
    'description' => NULL,
    'bizRule' => 'return $params->userId===app()->user->id && $params->order->status == 2;',
    'data' => NULL,
    'children' => 
    array (
      0 => 'coupon.access',
    ),
  ),
  'company.coupon.access' => 
  array (
    'type' => 1,
    'description' => NULL,
    'bizRule' => 'return $params->deal->company->userId===app()->user->id;',
    'data' => NULL,
    'children' => 
    array (
      0 => 'coupon.access',
    ),
  ),
  'citymanager' => 
  array (
    'type' => 2,
    'description' => 'City Manager',
    'bizRule' => NULL,
    'data' => NULL,
    'children' => 
    array (
      0 => 'user',
      1 => 'company.editor',
      2 => 'company.edit',
      3 => 'company',
    ),
  ),
);
